package com.live.shop.scene.ws;

import org.java_websocket.WebSocket;

import java.nio.ByteBuffer;

public class WsMessageEvent {

    private String message; //网络数据内容
    private int number;  //网络数据分类
    private int progress;  //进度
    private ByteBuffer buffer;

    public WsMessageEvent(int number,ByteBuffer buffer) {
        this.number = number;
        this.buffer = buffer;
    }

    public WsMessageEvent(int number, String message) {
        this.message = message;
        this.number = number;
    }
    public WsMessageEvent(int number, int progress) {
        this.progress = progress;
        this.number = number;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public ByteBuffer getBuffer() {
        return buffer;
    }

    public void setBuffer(ByteBuffer buffer) {
        this.buffer = buffer;
    }

    public int getProgress() {
        return progress;
    }

    public void setProgress(int progress) {
        this.progress = progress;
    }
}
